import 'package:flutter/material.dart';

class Home extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar:AppBar(
        title: Text("网络访问Demo"),
      ) ,
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            RaisedButton(
              child: Text("HTTPClient基本使用"),
              onPressed: (){
                Navigator.of(context).pushNamed('/page/baidu');
              },
            ),
          ],
        ),
      ),

    );
  }
}